home *** CD-ROM | disk | FTP | other *** search
/ Digital Pose Collection / Digital Pose Collection.iso / pc / modules / _sspose.exe / _sspose.DXR / 00001.ls next >
Encoding:
Text File  |  1996-06-13  |  904 b   |  53 lines

  1. global gh, gv, count, prevh, prevv
  2.  
  3. on ini
  4.   puppetSprite(1, 1)
  5.   set count to 0
  6.   set flg to 1
  7.   set gh to the stageRight - the stageLeft
  8.   set gv to the stageBottom - the stageTop
  9.   go(string(random(12)))
  10. end
  11.  
  12. on nextpic
  13.   set the locH of sprite 1 to gh / 2
  14.   set the locV of sprite 1 to gv / 2
  15.   set the castNum of sprite 1 to random(12) + 2
  16.   puppetTransition(26, 4, 3, 1)
  17.   updateStage()
  18. end
  19.  
  20. on nextj
  21.   set the castNum of sprite 1 to 2
  22.   puppetTransition(26, 4, 3, 1)
  23.   updateStage()
  24.   go(string(random(12)))
  25. end
  26.  
  27. on loops
  28.   if count > 150 then
  29.     set count to 0
  30.     go(the frame + 1)
  31.   else
  32.     set count to count + 1
  33.     go(the frame - 1)
  34.   end if
  35. end
  36.  
  37. on startMovie
  38.   set prevh to mouseH()
  39.   set prevv to mouseV()
  40. end
  41.  
  42. on idle
  43.   if (the mouseH <> prevh) or (the mouseV <> prevv) then
  44.     dosaver()
  45.   end if
  46.   when mouseDown then doSaver
  47.   when keyDown then doSaver
  48. end
  49.  
  50. on dosaver
  51.   quit()
  52. end
  53.